import QtQuick 2.0
import QtQuick.Controls 2.3
import QtQuick.Layouts 1.3
import QtGraphicalEffects 1.12
import  Quick.UIComponent.Text.Normal  0.1

Page{
    id:root
    title: "Button"

    ProgressBar {
        id: progressBar
        width: parent.width - 100
        anchors.centerIn: parent
        value: 0
    }


    Timer{
        interval: 500; running: true; repeat: true
        onTriggered: progressBar.value += 0.01
    }

    MText {
        id: element
        text: qsTr("Start Init!")
        pxSize: 28
        anchors.verticalCenter: parent.verticalCenter
        anchors.horizontalCenter: parent.horizontalCenter
        anchors.verticalCenterOffset: -40
    }


    Glow {
        anchors.fill: progressBar
        radius: 18
        samples: 37
        color: "#87CEFA"
        source: progressBar
    }

    Glow {
        anchors.fill: element
        radius: 18
        samples: 37
        color: "#7A68EE"
        source: element
    }
}

